<?php
namespace app\manage\model;

class GameServer extends Base
{
    public function serverIdName(){
        $serverSelect = model('GameServer')->field("game_id,server_id, server_name")->order('game_id desc')->select();
        $serverIdName = [];
        foreach($serverSelect as $k=>$v){
            $serverIdName[$v['game_id']][$v['server_id']] = $v['server_name'];
        }

        return $serverIdName;
    }

}